<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>网页内容工具箱</title>
    <style>
        body {
            width: 300px;
            padding: 15px;
            font-family: "Microsoft YaHei", Arial, sans-serif;
        }
        .container {
            text-align: center;
        }
        h1 {
            font-size: 18px;
            margin-bottom: 15px;
            color: #333;
        }
        .button-group {
            display: grid;
            gap: 10px;
        }
        .action-button {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #fff;
            color: #333;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            transition: all 0.3s;
        }
        .action-button:hover {
            background-color: #f5f5f5;
            border-color: #999;
        }
        .action-button:disabled {
            background-color: #f5f5f5;
            border-color: #ddd;
            color: #999;
            cursor: not-allowed;
        }
        .icon {
            font-size: 18px;
            margin-right: 10px;
            min-width: 24px;
        }
        .progress {
            display: none;
            margin-top: 10px;
            padding: 10px;
            background-color: #f8f9fa;
            border-radius: 4px;
            text-align: center;
        }
        .progress.show {
            display: block;
        }
        .error {
            display: none;
            margin-top: 10px;
            padding: 10px;
            background-color: #ffebee;
            color: #c62828;
            border-radius: 4px;
            text-align: center;
        }
        .error.show {
            display: block;
        }
        .success {
            display: none;
            margin-top: 10px;
            padding: 10px;
            background-color: #e8f5e9;
            color: #2e7d32;
            border-radius: 4px;
            text-align: center;
        }
        .success.show {
            display: block;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>网页内容工具箱</h1>
        <div class="button-group">
            <button id="fullPageScreenshot" class="action-button">
                <span class="icon">📷</span>
                长截图
            </button>
            <button id="screenshot" class="action-button">
                <span class="icon">🖼️</span>
                普通截图
            </button>
            <button id="savePDF" class="action-button">
                <span class="icon">📄</span>
                保存为PDF
            </button>
            <button id="saveWord" class="action-button">
                <span class="icon">📝</span>
                保存为Word
            </button>
            <button id="saveExcel" class="action-button">
                <span class="icon">📊</span>
                保存为Excel
            </button>
        </div>
        <div id="progress" class="progress">
            <span id="progressText">正在处理中...</span>
        </div>
        <div id="error" class="error">
            <span id="errorText"></span>
        </div>
        <div id="success" class="success">
            <span id="successText"></span>
        </div>
    </div>
    <script src="popup.js"></script>
</body>
</html> 